/**
 * Classe que representa o Layout de Mapa
 *
 * @this {Layout}
 * @version
 */

function Layout() {

    /**
     * Variaveis
     */
    this.id = "background";
    this.type = EElementType.eTLayout;
    this.orientation = EGeneralTypes.eLayoutOrientLandscape;
    this.x = "0";
    this.y = "0";
    this.width = EGeneralTypes.eDefaultLayoutWidth;
    this.height = EGeneralTypes.eDefaultLayoutHeight;
    this.fill = "#fff";
    this.stroke = "#000";
    this.strokeWidth = "2";

    /**
     * Inicializa o objeto da classe
     */
    this.init = function(){

    }

    /**
     * Funcoes
     */

    this.setLayoutOrientation = function(strType){

        this.orientation = strType;
        var aux = this.width;
        this.width = this.height;
        this.height = aux;
    }

    /**
     * Chamada do inicializador da classe
     */
    this.init();
    
}
